<!DOCTYPE html>
{{- $theme := partial "functions/theme" . }}
{{- $fontSize := partial "functions/font_size" . }}
{{- $palette := partial "functions/palette" . }}
<html lang="{{ .Site.LanguageCode }}" dir="{{- .Language.LanguageDirection -}}" data-bs-theme="{{ $theme }}" data-bs-font_size="{{ $fontSize }}" data-bs-palette="{{ $palette }}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=6, user-scalable=yes, interactive-widget=resizes-visual">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="generator" content="Hugo {{ hugo.Version }}">
    {{- partial "head/theme-color" . -}}
    {{ block "robots" . }}{{- partial "head/robots" . -}}{{ end }}
    {{ block "description" . }}{{- partial "head/description" . -}}{{ end }}
    {{ block "keyword" . }}{{- partial "head/keyword" . -}}{{ end }}
    {{ block "title" . }}<title>{{- partial "head/title" . -}}</title>{{ end }}
    {{ if eq .Kind "404" -}}
        <link rel="canonical" href="{{ .RelPermalink }}">
        {{ if hugo.IsMultilingual }}
            {{ range .Translations }}
                <link rel="alternate" hreflang="{{ .Site.LanguageCode }}" href="{{ .RelPermalink }}">
            {{ end }}
        {{ end }}
    {{ end }}
    {{ with .OutputFormats.Get "rss" -}}
        {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
    {{ end -}}
    {{ partial "favicons" . }}
    {{ partial "stylesheet" . }}
    {{ partial "head/scripts/index" . }}
    {{ partial "head/no_script" }}
    {{- block "before_the_end_of_the_head" . -}}{{- end }}
</head>
{{ block "body_override" . }}<body class="bg-body">{{ end }}

{{ if and (ne .Page.Params.onlyMain true) (ne .Page.Params.skippy "hide") }}{{ partial "skippy-top" . }}{{ end }}

{{ block "svg_sprite" . }}{{ partial "svg_sprite_icons/main" . }}{{ end }}

{{ if and (ne .Page.Params.onlyMain true) (ne .Page.Params.navbar.enable false) }}{{ block "header_navbar" . }}{{ partial "navbar/v1/index" . }}{{ end }}{{ end }}

{{ if and (ne .Page.Params.onlyMain true) (ne .Page.Params.bulletin.enable false) }}{{ partial "top-bulletin" . }}{{ end }}

{{ if and (eq .Site.Params.breadcrumb.enable true) (or (eq .Site.Params.breadcrumb.position "top") (eq .Page.Params.breadcrumb.position "top")) }}
    {{ if and (ne .Page.Params.onlyMain true) (ne .Page.Params.breadcrumb.enable false) }}{{ partial "breadcrumb/index" . }}{{ end }}
{{ end }}

{{ partial "demo/account_form/svg_sprite_icons" . }}

<main class="pb-5 container-fluid" id="main">
    <div class="mx-auto col-12 col-sm-8 col-md-6 col-lg-5 col-xl-4 col-xxl-3" id="content">
        {{ block "content" . }}{{ .Content }}{{ end }}
    </div>
</main>
{{ partial "verify" . }}

{{ if and (eq .Site.Params.breadcrumb.enable true) (or (eq .Site.Params.breadcrumb.position "bottom") (eq .Page.Params.breadcrumb.position "bottom")) }}
    {{ if and (ne .Page.Params.onlyMain true) (ne .Page.Params.breadcrumb.enable false) }}{{ partial "breadcrumb/index" . }}{{ end }}
{{ end }}

{{ if and (ne .Page.Params.onlyMain true) (ne .Page.Params.footer.enable false) }}{{ partial "footer" . }}{{ end }}

{{ if and (ne .Page.Params.onlyMain true) (ne .Page.Params.float_tools.enable false) (eq .Site.Params.float_tools.enable true) }}{{ partial "fixed_float/tools" . }}{{ end }}

{{ if and (ne .Page.Params.onlyMain true) (ne .Page.Params.skippy "hide") }}{{ partial "skippy-bottom" . }}{{ end }}

{{ partial "scripts" . }}
{{- block "before_the_end_of_the_body" . }}{{ end }}
</body>
</html>